import fetch from '../fetch';

// eslint-disable-next-line import/prefer-default-export
export async function fileUpload(data) {
  const opt = {
    method: 'post',
    url: '/fileUpload',
    headers: { 'Content-Type': 'multipart/form-data' },
    data,
  };
  return fetch(opt);
}
